Skip to main content

All Questions

Tagged with
6votes
5answers
1kviews

How to refactor this code to obey the ‘open-closed’ principle?

The UML is listed below. There are different products with different preferential strategies. After adding these products into the shopping cart, the caller needs to call the checkout() method to ...
Abner's user avatar
-4votes
1answer
88views

Command-Query Separation non-compliance

Why does Java's V Map.put(K key, V value) not comply to the Command-Query Separation?
Suhas Srivastava's user avatar
2votes
4answers
330views

Meaning of Machine in Compiler Theory

Can anyone tell me what does "machine" means in Compiler Theory? Does it mean computer in general or operating system? Actually, the problem is I understand the definition of machine language as "the ...
Delsilon's user avatar
0votes
3answers
30kviews

How to design the classes for a simple shopping cart example using Strategy Design Patterns

First year of Software Engineering, and we're learning OOP within Java. Came across an extension task to gain more credits. But could not think of what to do: First Step: Design a checkout system ...
Tom Bradely's user avatar
-1votes
1answer
648views

Should I re-write VB6 Code to Java [closed]

I work at a mid-sized company where an update is needed to an piece of the application due to an addition to the environment. The part that needs updated has been in place for 13 years, is fairly ...
Tastybrownies's user avatar
2votes
3answers
158views

Refactor an old model of a LastUser Modification on every Object?

I have a software requirement, that needs to store the user that made the last modification to another object, for every object (assume that all objects are already mapped and into a BD). So we have ...
nicoLinjava's user avatar
11votes
2answers
10kviews

Are you allowed to "copy" the GUI/Features of another application

I'm making a app which is based heavily on another application that serves a similar purpose. I'm not actually planning on selling it, but I'm wondering whether it would even be legal for me to sell ...
sinθ's user avatar
  • 1,311
1vote
2answers
131views

Copyright/General Law for Publishing Online Software

I'm planning on releasing a program I made, but I'm not sure exactly how to ensure people don't just steal it. The price point is $1, but I'm not selling it through an "app store" or anything so I ...
sinθ's user avatar
  • 1,311
6votes
2answers
2kviews

How much should a floating license cost? [closed]

Floating licensing is a software licensing approach in which a limited number of licenses for a software application are shared among a larger number of users over time. Nice for the corporates to ...
Kayser's user avatar

close